<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="my" uri="/mytags" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>文件图片上传</title>
<link rel="stylesheet" type="text/css" href="asserts/bootstrap-3.3.7-dist/css/bootstrap.min.css"/>
	
		<!-- js插件 -->
		<script src="${pageContext.request.contextPath}/js/jquery-3.2.1.min.js"></script>
		<script src="${pageContext.request.contextPath}/asserts/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
        <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/asserts/bootstrapValidate/css/bootstrapValidator.min.css"/>
 	   <script src="${pageContext.request.contextPath}/asserts/bootstrapValidate/js/bootstrapValidator.min.js"></script>
</head>
<body>
<div class="container-fluid a">
			<div class="row">
				<form action="${pageContext.request.contextPath}/process/add" method="post" enctype="multipart/form-data" class="form-horizontal col-md-6 col-md-offset-3">
					<h1>图片文件添加</h1>
					<hr/>
					<!-- 1.标题基本情况图片： -->
						<div class="form-group">
									<label class="control-label col-md-3">标题：</label>
									<div class="col-md-8">
										<input type="text" name="titlefile"  class="form-control"  />
									</div>
						</div>
						<!-- 2.基本情况图片：-->
						<div class="form-group">
									<label class="control-label col-md-3">上传基本情况说明：</label>
									<div class="col-md-8">
										<input type="file" name="basicfile" class="form-control"  />
									</div>
						</div>
						<!-- 3.承诺书：-->
						<div class="form-group">
									<label class="control-label col-md-3">上传承诺书：</label>
									<div class="col-md-8">
										<input type="file" name="promisefile"  class="form-control"  />
									</div>
						</div>
						<!-- 4.领导小组文件：-->
						<div class="form-group">
									<label class="control-label col-md-3">上传领导小组文件：</label>
									<div class="col-md-8">
										<input type="file" name="leaderfile" class="form-control"  />
									</div>
						</div>
						<!-- 5.评审小组文件：-->
						<div class="form-group">
									<label class="control-label col-md-3">上传评审小组文件：</label>
									<div class="col-md-8">
										<input type="file" name="assessfile" class="form-control"  />
									</div>
						</div>
						<!-- 6.会议记录文件：-->
						<div class="form-group">
									<label class="control-label col-md-3">上传评审会议记录：</label>
									<div class="col-md-8">
										<input type="file" name="mettingfile"  class="form-control"  />
									</div>
						</div>
						<!-- 7.签领表：-->
						<div class="form-group">
									<label class="control-label col-md-3">上传签领表(已签字)：</label>
									<div class="col-md-8">
										<input type="file" name="signaturefile" class="form-control"  />
									</div>
						</div>
						<!-- 8.银行流水：-->
						<div class="form-group">
									<label class="control-label col-md-3">上传银行打款流水：</label>
									<div class="col-md-8">
										<input type="file" name="bankfile"  class="form-control"  />
									</div>
						</div>
			 
							  <div class="form-group">
									<label class="control-label col-md-3">所属学校：</label>
									<div class="col-md-8">
									 <select name="schid" class="form-control">
											<option value="">请选择</option>
										 	<c:forEach var="school" items="${schoolList}">
										 		<option value="${school.schid}">${school.name}</option>
										 	</c:forEach>
										</select> 
									</div>
								</div>
					<!-- 8.银行流水：-->
					
						<div class="form-group">
									
									<div class="col-md-4">
										<input type="submit" value="提交"/>
									</div>
						</div>
					
				</form>
				
			</div>
			
		</div>

</body>
</html>
<script>
$(function () {	  
    $('form').bootstrapValidator({
    	
　	message: 'This value is not valid',
      	 	feedbackIcons: {
            valid: 'glyphicon glyphicon-ok',
            invalid: 'glyphicon glyphicon-remove',
            　　　　　validating: 'glyphicon glyphicon-refresh'
        　　　　　　　　   },
        fields: {	
        	titlefile: {
                
                validators: {
                    notEmpty: {
                        message: '标题基本情况图片不能为空'
                    }
                }
            },
            basicfile: {
                validators: {
                    notEmpty: {
                        message: '基本情况图片不能为空'
                    }
                }
            },
            promisefile: {
                validators: {
                    notEmpty: {
                        message: '承诺书不能为空'
                    }
                }
            },
            leaderfile: {
                validators: {
                    notEmpty: {
                        message: '领导小组文件不能为空'
                    }
                }
            },
            assessfile: {
                validators: {
                    notEmpty: {
                        message: '评审小组文件不能为空'
                    }
                }
            },
            mettingfile: {
                validators: {
                    notEmpty: {
                        message: '会议记录文件不能为空'
                    }
                }
            },
            signaturefile: {
                validators: {
                    notEmpty: {
                        message: '签领表不能为空'
                    }
                }
            },
            bankfile: {
                validators: {
                    notEmpty: {
                        message: '银行流水不能为空'
                    }
                }
            },
            schid: {
                validators: {
                    notEmpty: {
                        message: '所属学校不能为空'
                    }
                }
            }
        } ,
        submitHandler: function (validator, form, submitButton) {
          // alert("submit");
        }
    });
    
    
    
});

</script>
